package campus.aiit.ssl.dao;

import campus.aiit.ssl.domain.model.DeviceType;
import campus.aiit.ssl.manage.custom.dao.BaseDao;
import campus.aiit.ssl.manage.custom.dao.DaoResultCheck;

/**
 * @author ihaokun
 * @date 2019/12/3 15:17
 */
public interface DeviceTypeDao extends BaseDao<DeviceType> {
  @Override@DaoResultCheck
  int deleteByPrimaryKey(Long id);

  @DaoResultCheck
  int insert(String name);

  @Override@DaoResultCheck
  int updateByPrimaryKeySelective(DeviceType record);

  String selectNameByPrimaryKey(Long id);

  DeviceType[] selectAll();

  Long selectIdByUniqueName(String s);

  Long selectMaxId();
}